package com.jgz.websocketdemo.type;


import com.jgz.websocketdemo.type.ArenaGameTypeEnum;
import com.jgz.websocketdemo.type.ArenaMsgTypeEnum;
import com.jgz.websocketdemo.type.ArenaTypeEnum;
import com.jgz.websocketdemo.type.QuestionOptionEnum;

/**
 * @author 揭光智
 * @date 2018/12/14
 */
public class WebSocketMsgParam {

    /**
     * 消息类型：开始竞技,订阅,反订阅,提交答案
     */
    private ArenaMsgTypeEnum msgType;

    /**
     * 订阅/反订阅的主题
     */
    private String topic;

    /**
     * 游戏类型
     */
    private ArenaGameTypeEnum gameType;

    /**
     * 竞技类型
     */
    private ArenaTypeEnum arenaType;

    /**
     * 答案选项
     */
    private QuestionOptionEnum option;


    public ArenaMsgTypeEnum getMsgType() {
        return msgType;
    }

    public void setMsgType(ArenaMsgTypeEnum msgType) {
        this.msgType = msgType;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public ArenaGameTypeEnum getGameType() {
        return gameType;
    }

    public void setGameType(ArenaGameTypeEnum gameType) {
        this.gameType = gameType;
    }

    public ArenaTypeEnum getArenaType() {
        return arenaType;
    }

    public void setArenaType(ArenaTypeEnum arenaType) {
        this.arenaType = arenaType;
    }

    public QuestionOptionEnum getOption() {
        return option;
    }

    public void setOption(QuestionOptionEnum option) {
        this.option = option;
    }
}
